<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Úlohy</title>
    <link href="<?php echo base_url(); ?>assets/css/style.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo base_url(); ?>assets/blitzer/jquery-ui-1.9.1.custom.css" rel="stylesheet">
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/main.js"></script>
    
    <script type="text/javascript">
        $(document).ready(function() {
             $("input[type='submit']").button();
             $(".button").button();
             $('.float').live("keypress",function(event){
                 if ((event.which != 45 || $(this).val().indexOf('.') != -1) && (event.which != 46 || $(this).val().indexOf('.') != -1) && (event.which < 48 || event.which > 57)) {
                    event.preventDefault();
                 }
             });
        });
    </script>
</head>
<body>

<div id="hlavicka">
    <h1>Učebnica fyziky</h1>
    <div id="user_info"> 
   <?php
    if ($this->session->userdata('logged')) {
  ?>
        Ste prihlásený ako užívateľ <?php echo $this->session->userdata('firstname').' '.$this->session->userdata('lastname') ?>
    <a href="<?php echo base_url(); ?>/auth/logout"> (Odhlásiť) </a>
    
 <?php
} 
?>
        
    </div>
</div>

<?php $this->load->view('templates/navig'); ?>